home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Font / DLL / MakeDLL < prev    next >
Text File  |  1995-07-08  |  4KB  |  158 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.FontPaint3    \
  4.             o.LoseAll    \
  5.             o.Font00    \
  6.             o.Font01    \
  7.             o.Font02    \
  8.             o.Font03    \
  9.             o.Font04    \
  10.             o.Font05    \
  11.             o.Font06    \
  12.             o.Font07    \
  13.             o.Font08    \
  14.             o.Font09    \
  15.             o.Font0a    \
  16.             o.Font0b    \
  17.             o.Font0c    \
  18.             o.Font0d    \
  19.             o.Font0e    \
  20.             o.Font0f    \
  21.             o.Font10    \
  22.             o.Font11    \
  23.             o.Font12    \
  24.             o.Font13    \
  25.             o.Font14    \
  26.             o.Font15    \
  27.             o.Font16    \
  28.             o.Font17    \
  29.  
  30.  
  31. LibName        =    Font
  32.  
  33.  
  34.  
  35. # Template makefile to make Straylight Dynamic Link 
  36. # Library from a DeskLib sublibrary's .o files
  37. #
  38. # The DLL is made in the directory 
  39. # '<DeskLib$Dir>.!DLLs.Freeware_1.DeskLib.'
  40. # and has the same name as the DeskLib sublibrary.
  41. #
  42. # Julian Smith 17 Apr 1995.
  43.  
  44. # The macro $(ObjectFiles) should be set at the 
  45. # start of this file, to be a space-separated
  46. # list of object files.
  47. # This is done by 'Makatic'.
  48.  
  49. # The macro $(LibName) should also be set at the 
  50. # start of this file, to be the name of the 
  51. # DeskLib sublibrary.
  52. # This is done by 'Makatic'.
  53.  
  54. # Note that this makefile doesn't use cc at all
  55. # - it merely links existing .o files.
  56.  
  57. # Linker flags, These can be anything. 
  58. # All flags required by Straylight (eg Link -rmf) 
  59. # are included in the $(LINK) macro.
  60. #
  61. LinkFlags    =    $(LinkExtra)
  62.  
  63.  
  64. # Macros for commands, including the Straylight
  65. # tool 'cdll'. Note that DRLink doesn't seem to
  66. # work with the SDLS.
  67. #
  68. LINK        =    Link -rmf
  69. CDLL        =    cdll
  70.  
  71.  
  72. # Filename of the thing we need to make: - the main
  73. # dynamically-linked library, which will go in the 
  74. # !DLL application.
  75. # NB The leafname of $(DLL_Lib) file (after copying into the !DLL
  76. # application) should be the same as the 'name' field in the
  77. # $(DLL_Def) file. In this case, this is $(LibName).
  78. DLL_Lib        =    <DeskLib$Dir>.!DLLs.Freeware_1.DeskLib.$(LibName)
  79.  
  80.  
  81. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  82. #
  83. DLL_Header    =    Header
  84. DLL_Def        =    ^.DLLDef
  85. DLL_Stubs    =    Stubs
  86.  
  87.  
  88.  
  89. # -------------------------------------------------------
  90. # Everything below here should probably not be changed...
  91. # -------------------------------------------------------
  92.  
  93.  
  94. # Extra libs, written by Straylight, which always need to be linked into a DLL
  95. #
  96. SDLS_ExtraObjects=                    \
  97.             C:DLLLib.o.DLLLib        \
  98.             C:DLLLib.o.dstubs        \
  99.  
  100.  
  101. # Extra DeskLib libraries which need to be linked into the final DLL.
  102. # The DLL DeskLib library is included here because some DeskLib DLLs may
  103. # refer to other DeskLib DLLs.
  104. # Note that DeskLib:o.DLL contains all the DLL.o.* files except for 
  105. # the sublibraries for which there is a DLL - just the DLL Stubs file
  106. # is included for these.
  107. #
  108. DeskLib_ExtraObjects=                \
  109.             DeskLib:o.DLLDLL    \
  110.  
  111.  
  112.  
  113.  
  114. #Here's what we want to make...
  115.  
  116. All:    $(DLL_Lib)
  117.  
  118. $(DLL_Lib):    $(DeskLib_ExtraObjects) $(SDLS_ExtraObjects) $(DLL_Header) $(ObjectFiles)
  119.     $(LINK) $(LinkFlags) -o $@ $(ObjectFiles) $(DeskLib_ExtraObjects) $(SDLS_ExtraObjects) $(DLL_Header)
  120.  
  121.  
  122.  
  123. # Here's how to make the things which are needed in the above rules
  124.  
  125. $(DLL_Def):    
  126.     | Error: No DLL definition file exists.
  127.     |        You should run th MkStubsOs makefile
  128.     |        and then alter the template Def
  129.     |        file by hand.
  130.  
  131. $(DLL_Header):    $(DLL_Def)
  132.     $(CDLL) -def $(DLL_Def) -hdr $(DLL_Header)
  133.  
  134.  
  135. # Rule for compiling C source code for a Straylight dynamically-linked library.
  136. # Actually, we don't call cc - we complain and tell the user to run the 
  137. # MkStubsOs makefile.
  138.  
  139. VPATH = @.^
  140.  
  141. .SUFFIXES:    .o .c .s
  142. .c.o:
  143.     | $@ needs recompiling. This should be done by
  144.     | running the MkStubsOs or MkOs makefile before running
  145.     | this makefile.
  146.     |
  147.  
  148. .s.o:
  149.     | $@ needs assembling. This should be done by
  150.     | running the MkStubsOs or MkOs makefile before running
  151.     | this makefile.
  152.     |
  153.  
  154.  
  155.  
  156. # Dynamic dependencies:
  157.